package com.sansi.bleFloodlight.utils;

import java.util.List;

public class ListUtils {

    public static void initList(List<Boolean> list, boolean value) {
        for (int i = 0; i < list.size(); i++) {
            list.set(i, value);
        }
    }

    public static boolean isSelectAll(List<Boolean> list) {
        for (int i = 0; i < list.size(); i++) {
            if (!list.get(i)) return false;
        }
        return true;
    }
}
